<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改班级管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-Management-edit" th:object="${classManagement}">
            <input name="classMajorkey" th:field="*{classMajorkey}" type="hidden">
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">班级主键：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="classMajorkey" th:field="*{classMajorkey}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">班级名称：</label>
                <div class="col-sm-8">
                    <input name="className" th:field="*{className}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">所属学籍：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="classStudentStatus" class="form-control m-b" th:with="type=${@dict.getType('Class_Student_status')}">-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{classStudentStatus}"></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">班主任：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="classHeadTeacher" th:field="*{classHeadTeacher}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">班主任：</label>
                <div class="col-sm-8">
                    <select name="classHeadTeacher" class="form-control" th:with="type=${@dict.getType('Class_Head_teacher')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">班级类型：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="classType" class="form-control m-b" th:with="type=${@dict.getType('Class_Type')}">-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{classType}"></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">班级状态：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="classStatus" class="form-control m-b" th:with="type=${@dict.getType('Class_Status')}">-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{classStatus}"></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">班级状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" name="classStatus" th:each="dict : ${@dict.getType('Class_Status')}">
                        <input type="radio" th:id="${'classStatus' + dict.dictCode}" name="classStatus" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${'classStatus' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">班级学科：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="classDiscipline" class="form-control m-b" th:with="type=${@dict.getType('Class_Discipline')}">-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{classDiscipline}"></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">校区：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="classCampus" class="form-control m-b" th:with="type=${@dict.getType('Class_Campus')}">-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{classCampus}"></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">开班时间：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="classOpeningTime" th:field="*{classOpeningTime}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/Management";
        $("#form-Management-edit").validate({
            focusCleanup: true
        });
        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-Management-edit').serialize());
            }
        }
    </script>
</body>
</html>